package translinkApp.Data.GoCard;

import android.os.Parcel;
import android.os.Parcelable;

public class GoCardTransaction implements Parcelable {

	private String transDate;
	private String transAction;
	private String transLocation;
	private String transAmount;

	public String getDate() {
		return transDate;
	}

	public String getAction() {
		return transAction;
	}

	public String getLocation() {
		return transLocation;
	}

	public String getAmount() {
		return transAmount;
	}

	public GoCardTransaction(String tDate, String tAct, String tLoc, String tAmnt) {
		transDate = tDate;
		transAction = tAct;
		transLocation = tLoc;
		transAmount = tAmnt;
	}

	// ---- Parcellable object methods

	public GoCardTransaction(Parcel in) {
		transDate = in.readString();
		transAction = in.readString();
		transLocation = in.readString();
		transAmount = in.readString();
	}

	public static final Parcelable.Creator CREATOR = new Parcelable.Creator() {
		public GoCardTransaction createFromParcel(Parcel in) {
			return new GoCardTransaction(in);
		}

		public GoCardTransaction[] newArray(int size) {
			return new GoCardTransaction[size];
		}
	};

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(transDate);
		dest.writeString(transAction);
		dest.writeString(transLocation);
		dest.writeString(transAmount);
	}
}
